/*
 * ui.h
 *
 *  Created on: Nov 3, 2020
 *      Author: zhen
 */

#ifndef INC_UI_H_
#define INC_UI_H_

#include "main.h"
#include "NT35510.h"
//#include "gt30l32.h"
//#include "st7789.h"
//#include "utf8_gbk.h"
#include <string.h>
#include <stdio.h>
#include <math.h>

typedef enum
{
  UI_FONT_7 = 0,
  UI_FONT_8,
  UI_FONT_12,
  UI_FONT_16,
  UI_FONT_24,
  UI_FONT_32
}UI_FontType;

void UI_DrawPixel(uint16_t x, uint16_t y, uint16_t pixelColor);
void UI_DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t pixelColor);
void UI_DrawHVLine(uint16_t x, uint16_t y, uint16_t len, uint8_t dir, uint16_t pixelColor);
void UI_DrawBox(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t pixelColor);
void UI_DrawFrame(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t pixelColor);
void UI_DrawRBox(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, uint16_t pixelColor);
void UI_DrawRFrame(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, uint16_t pixelColor);
//void UI_DisplayASCII(char ascii, UI_FontType font, uint16_t x, uint16_t y, uint16_t pixelColor);
//void UI_DisplayGBK(uint16_t gbk, UI_FontType font, uint16_t x, uint16_t y, uint16_t pixelColor);
//void UI_DisplayString(const char* string, UI_FontType font, uint16_t x, uint16_t y, uint16_t pixelColor);
//
//void UI_DrawLineChartBackground(float lowestVoltage, float highestVoltage, uint16_t highestTime);
//void UI_DrawLineChart(uint16_t *voltageDataSet, uint16_t dataLen);

#endif /* INC_UI_H_ */
